//  教师端API
import  request from "../utils/request.js"

//统计分析———整体

// 获取该教师指导过学生的所有年份
export const getAllYearsByTeacher = (id) => {
    return request.get('/teacher/horizontalCompareStudents/getAllYearsByTeacher',{ 
        params: { id }
    });
}

// 获取某教师最新一年指导的所有学生的数据概览
export const getTeacherHomeOverview = (teacherId,year) => {
    return request.get('/teacher/home/overview',{ 
        params: { teacherId,year}
    });
}

// 获取某教师最新一年指导的所有学生最后一次论文分数
export const getAllPaperByTeacher = (teacher,year) => {
    return request.get('/teacher/horizontalCompareStudents/getAllPaperByTeacher',{ 
        params: { teacher,year }
    });
}



//统计分析———单个
//获取某教师指导的所有学生的学号和姓名
export const getAllStudentsByTeacher = (id) => {
    return request.get('/teacher/vertical-compare-one-student/getAllStudentsByTeacher',{ 
        params: { id }
    });
}

// 获取某教师最新一年指导的某个学生的数据概览
export const getTeacherSelfPaperScore = (studentId) => {
    return request.get('/teacher/paper-score/one-student',{ 
        params: { studentId}
    });
}

// 获取某学生的所有论文分数情况
export const getAllPaperByStudent = (studentId) => {
    return request.get('/teacher/verticalCompareOneStudent/getAllPaperByStudent',{ 
        params: { studentId }
    });
}
